<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<c:forEach var="parent" items="${growCycleSegments.children}" varStatus="parentStatus">
	<p class="quesrighnav sH705 martop10">
		<a class="color:red" target="_self" href="<c:url value='/growcycle/view.do?segid=${parent.current.segmentid}'/>">
			<c:out value="${parent.current.title}"/>
		</a>
	</p>
	<ul class="quesrighul">
		<c:forEach var="current" items="${parent.children}" varStatus="currentStatus">
			
			<c:if test="${currentStatus.count%3==1}">
				<c:set var="startStatus" value="${currentStatus.count}"></c:set>
				<li>
			</c:if>
			<c:choose>
				<c:when test="${currentStatus.count%3==1}">
					<span>
					<a target="_self" title="${current.current.title}" href="<c:url value='/growcycle/view.do?segid=${current.current.segmentid}'/>">
						<c:out value="${current.current.title}"/>
					</a>
					</span>
				</c:when>
				<c:otherwise>
					<a target="_self" title="${current.current.title}" href="<c:url value='/growcycle/view.do?segid=${current.current.segmentid}'/>">
						<c:out value="${current.current.title}"/>
					</a>
				</c:otherwise>
			</c:choose>
			<c:if test="${currentStatus.count%3==1 && currentStatus.count>startStatus}">
				</li>
			</c:if>
		</c:forEach>
	</ul>
</c:forEach>
